#include <stdio.h>  
int f[1005][1005], n, m;  
  
int main() {  
    if (scanf("%d%d", &m, &n));  
    for (int i = 1; i <= n; i++)  
        f[0][i] = 1;  
    for (int i = 1; i <= m; i++)  
        for (int j = 1; j <= n; j++) {  
            f[i][j] = f[i][j - 1];  
            if (i >= j)  
                f[i][j] += f[i - j][j];  
        }  
    printf("%d\n", f[m][n]);  
    return 0;  
}  